package ca.inrs.ete.app.shopx;

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import ca.inrs.ete.app.shopx.provider.DataProvider;
import ca.inrs.ete.app.shopx.sync.SyncService;


public class Main extends FragmentActivity {

	public static final String LOG_TAG= "SHOPLog";  

	/**
	 * ------------------------------------------------------------------------------
	 * 	
	 * ------------------------------------------------------------------------------
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		// --- Start the sync service
		Intent intent = new Intent(this, SyncService.class);
		startService(intent);

		// ---  Draw the layout
		setContentView(R.layout.activity_main);

		// ---  Start the activity
        Intent filesIntent = new Intent(Intent.ACTION_VIEW, DataProvider.CONTENT_URI_FOLDERS);
        startActivity(filesIntent);
	}

}


